describe('practice-4-7', function () {

    it("比较两个分数", function () {
        var faction_a = {numerator :3,denominator:5};
        var faction_b = {numerator :1,denominator:2};
        var compare_result = compare_fractions(faction_a,faction_b);
        expect('compare_result:'+compare_result).toBe('3/5>1/2');

        console.info(compare_result);
        var fac_a_temp = {numerator :16,denominator:32};
        var fac_b_temp = {numerator :4,denominator:8};
        var compare_temp = compare_fractions(fac_a_temp,fac_b_temp);
        expect(compare_temp).toBe('16/32=4/8');
        console.info('compare_temp:'+compare_temp);

        var fac_a = {numerator :4,denominator:5};
        var fac_b = {numerator :6,denominator:7};
        var compare = compare_fractions(fac_a,fac_b);
        expect('compare:'+compare).toBe('4/5<6/7');
        console.info(compare);
    });

});
